#include "..\CookHeader.h"

int main() {
    Array <Array <int>> totalLotto;
    Array <int> lotto;
    int pickNum;
    int totCount;

    println("** ζ ȣ  մϴ. **");
    input(totCount, "  ? ");

    randomInit(1, 45);
    for (int i = 0; i < totCount; i++) {
        lotto = {};
        while (true) {
            pickNum = cookRandom(gen);
            if (!(isInArray(lotto, pickNum)))
                lotto.push_back(pickNum);
            if (len(lotto) >= 6)
                break;
        }
        totalLotto.push_back(lotto);
    }

    for (int i = 0; i < totCount; i++) {
        lotto = totalLotto[i];
        sortArray(lotto);
        print("ڵȣ--> ");
        printArray(lotto);
    }
}